<h1><?php echo $this->pageTitle; ?></h1>
<?php echo $ajax->form('Brand', 'post', array('id' => 'formMain', 'update'=>'content', 'indicator' => 'indicator', 'url'=>array('action' => 'save'))); ?>
<div class="toolbar">
    <div id="tLeft">
        <?php if ($mode == 'add') : ?>
            <?php echo $this->element('toolbar', array('buttons' => array('save', 'clear', 'back'))); ?>
        <?php else : // mode edit ?>
            <?php echo $this->element('toolbar', array('buttons' => array('save', 'add', 'refresh_view',
                        array('delete' => array('model' => 'Brand', 'title' => 'name')), 'back'))); ?>
        <?php endif; ?>
    </div>
    <div id="tRight"><?php echo $this->element('neighbors', array('model' => 'Brand', 'title' => 'name')); ?></div>
</div>

<fieldset>
    <legend>Brand Information</legend>
    <table id="formTable">
        <tbody>
            <?php echo $form->input("Brand.id"); ?>
            <tr>
                <td width="150px"><?php echo $form->label("Brand.name", "Name", array('class' => 'required')) ?></td>
                <td><?php echo $form->text("Brand.name") ?></td>
            </tr>
            <tr>
                <td><?php echo $form->label("Brand.supplier_id", "Vendor", array('class' => 'required')) ?></td>
                <td><?php echo $form->select("Brand.supplier_id", $suppliers) ?> </td>
            </tr>
        </tbody>
    </table>
</fieldset>

<?php echo $form->end(); ?>










